package com.example.shiro.core.service.impl;

import com.example.shiro.core.bean.UserInfo;
import com.example.shiro.core.repository.UserInfoRepository;
import com.example.shiro.core.service.UserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/1/15 0015.
 */

@Service
public class UserInfoServiceImpl implements UserInfoService{
    @Resource
    private UserInfoRepository userInfoRepository;

    @Override
    public UserInfo findByUsername(String username) {
        return userInfoRepository.findByUsername(username);
    }
}
